package com.idol.component;

import com.idol.dubbo.api.SayHiService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @author SupremeSir
 * @description
 * @className ConsumerComponent
 * @date 2021/1/21 23:04
 **/
@Component
public class ConsumerComponent {
    @Reference(timeout = 3000)
    private SayHiService sayHiService;

    public void sayHi(String name) {
        sayHiService.sayHi(name);
    }
    public void sayBye(String name) {
        sayHiService.sayBye(name);
    }
    public void sayGoodNight(String name) {
        sayHiService.sayGoodNight(name);
    }
}
